home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / mscfunct / crt.doc < prev    next >
Text File  |  1987-05-09  |  2KB  |  84 lines

  1.          CRT Support functions for Microsoft C
  2.  
  3. #include <crt.h>
  4.  
  5. void crt_cls( );
  6. int page;
  7.  
  8. int crt_get_mode();
  9.  
  10. int crt_get_page();
  11.  
  12. void crt_home( page );
  13. int page;
  14.  
  15. void crt_line( x1, y1, x2, y2, color );
  16. int x1, y1, x2, y2, color;
  17.  
  18. void crt_place_cursor( row, column, page );
  19. int row, column, page;
  20.  
  21. int crt_read_pixel( x, y );
  22. int x, y;
  23.  
  24. void crt_scroll( top, bottom, left, right, lines );
  25. int top, bottom, left, right, lines;
  26.  
  27. void crt_set_mode( mode );
  28. int mode;
  29.  
  30. void crt_set_page( page );
  31. int page;
  32.  
  33. void crt_where( row, column, page );
  34. int *row, *column, page;
  35.  
  36. void crt_write_pixel( x, y, color );
  37. int x, y, color;
  38.  
  39.  
  40. o Descriptions
  41.  
  42. crt_cls clears the screen on the PC and locates the cursor in the upper
  43. left corner of page 0.
  44.  
  45. crt_get_mode returns the video mode of the PC.
  46.  
  47. crt_get_page returns the current active video page.
  48.  
  49. crt_home positions the cursor to the upper left corner of the given page.
  50.  
  51. crt_line draws a line in the given color from pixel x1,y1 to pixel x2,y2,
  52.  
  53. crt_place_cursor positions the cursor in the given row and column on the
  54. given page.
  55.  
  56. crt_read_pixel returns the color of the pixel at x,y.
  57.  
  58. crt_scroll scrolls a portion of the screen between the given top and bottom
  59. rows and the given left and right columns up the given amount of lines (down
  60. if lines is negative).
  61.  
  62. crt_set_mode sets the video mode to the specified value.
  63.  
  64. crt_set_page switches the active page to the specified page.
  65.  
  66. crt_where returns the row and column location of the cursor on the given page.
  67.  
  68. crt_write_pixel changes the pixel at x,y to the given color.
  69.  
  70.                  NOTES
  71.                  -----
  72.     Video modes:
  73.     
  74.     mode      meaning                video pages
  75.     ----      -------                -----------
  76.      0        40 by 25 B&W                0 through 7
  77.      1        40 by 25 color                0 through 7
  78.      2        80 by 25 B&W                0 through 3
  79.      3        80 by 25 color                0 through 3
  80.      4        320 by 200 color (40 by 25 text)    0 only
  81.      5        320 by 200 B&W (40 by 25 text)        0 only
  82.      6        640 by 200 B&W (80 by 25 text)        0 only
  83.      7        80 by 25 B&W card            0 only
  84.